<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"
	dir="ltr">
	<head>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<c:url value="/css/shopadmin.css"/>"
			type="text/css" />

	</head>
	<body style="">


		<div id="headBar" class="head_content">
			<div class="finder-action" id="finder-action-c24ae4">
				<div class="finder-action-inner clearfix">


					<button wrapimg="true" type="button"
						submit="index.php?ctl=member/gask&amp;act=setIndexOrder"
						target="refresh" class="btn btn-xl-large">
						<span><span><i class="finder-icon"><img
										src="<c:url value="/images/transparent.gif"/>"
										class="imgbundle icon"
										style="width: 20px; height: 24px; background-position: 0pt -572px;">
							</i>置顶/解除置顶</span> </span>
					</button>
					<button type="button" wrapimg="true" onclick="location.reload()"
						class="btn">
						<span><span><i class="finder-icon"><img
										src="<c:url value="/images/transparent.gif"/>"
										class="imgbundle icon"
										style="width: 22px; height: 24px; background-position: 0pt -644px;">
							</i>刷新</span> </span>
					</button>
					<button type="button" class="btn">
						<span><span><i class="finder-icon"><img
										src="<c:url value="/images/transparent.gif"/>"
										class="imgbundle icon"
										style="width: 17px; height: 24px; background-position: 0pt -757px;">
							</i>删除</span> </span>
					</button>
					<button type="button" class="btn">
						<span><span><i class="finder-icon"><img
										src="<c:url value="/images/transparent.gif"/>"
										class="imgbundle icon"
										style="width: 26px; height: 24px; background-position: 0pt -460px;">
							</i>筛选</span> </span>
					</button>
				</div>
			</div>

			<div style="width: 1215px;" id="finder-header-c24ae4"
				class="finder-header">
				<button title="列表项配置" type="button"
					onclick="new Dialog('index.php?ctl=member/gask&amp;act=colsetting',{width:350,title:'编辑列表项',onClose:window.finderGroup['c24ae4'].refresh.bind(window.finderGroup['c24ae4'])})"
					class="btn finder-col-options">
					<span><span><img
								src="<c:url value="/images/transparent.gif"/>"
								class="imgbundle icon"
								style="width: 16px; height: 16px; background-position: 0pt -1527px;">
					</span> </span>
				</button>
				<table cellpadding="0" cellspacing="0" width="100%">
					<!----cols---->
					<col style="width: 24px;" class="span-select" />
					<col style="width: 48px;" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col />
					<!----cols---->
					<thead>
						<tr>
							<td>
								<input class="sellist" name="ask_ids"  
									type="checkbox">
							</td>
							<td style="width: 48px;">
								&nbsp;查看
							</td>
					
							<td>
								<div class="cell orderable" key="title">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">标题</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="goods_id">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">咨询商品</span>
												</td>

											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="author">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">咨询人</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="time">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">咨询时间</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="lastreply">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">回复时间</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="adm_read_status">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">已阅</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="reply_name">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">最后回复人</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="display">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">前台显示</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								&nbsp;
							</td>
						</tr>
					</thead>
				</table>
			</div>

		</div>
		<div id="main" class="main_content">
			<div class="finder-list finder-list-normal" id="finder-list-c24ae4">
				<table cellpadding="0" cellspacing="0" width="100%"  id="ask_list_table">
					<!----cols---->
					<col style="width: 24px;" class="span-select" />
					<col style="width: 48px;" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col />
					<!----cols---->
					<tbody>
						<c:forEach var="ask" items="${memberCommentss}" varStatus="askIndex">
						<tr class="row" item-id="3">
							<td>
								<input onclick="changeColor(this)"  class="sel" name="memberCommentss[${askIndex.index }].commentId" value="${ask.commentId }" type="checkbox" />
							</td>
							<td class="finder-list-command">
								 
								<a 	href="mb_comment_edit.html?commentId=${ask.commentId }" ><img
										src="<c:url value="/images/transparent.gif"/>"
										class="imgbundle"
										style="width: 16px; height: 16px; background-position: 0pt -1811px;">
								</a>
							</td>
							<td key="title">
								<div class="cell">
									${ask.title }
								</div>
							</td>
							<td key="goods_id">
								<div class="cell">
									${ask.goodsId }
								</div>
							</td>
							<td key="author">
								<div class="cell">
									${ask.memberId}
								</div>
							</td>
							<td key="time">
								<div class="cell">
									${ask.createDate }
								</div>
							</td>
							<td key="lastreply">
								<div class="cell">
									${ask.replyDate }
								</div>
							</td>
							<td key="adm_read_status">
								<div class="cell">
									${ask.adminRead }
								</div>
							</td>
							<td key="reply_name">
								<div class="cell">
									${ask.replyName }
								</div>
							</td>
							<td key="display">
								<div class="cell">
									${ask.showOn }
								</div>
							</td>
							<td>
								&nbsp;
							</td>
						</tr>
						</c:forEach>
					</tbody>
				</table>
				 
			</div>
			
		</div>
		<div style="width: 1215px;" id="footBar" class="foot_content">
			<div class="finder-footer" id="finder-footer-c24ae4">
				<div class="finder-page clearfix">
					<div class="span-3">
						 
					</div>
					<div class="span-auto"></div>
					<div class="span-auto textright">
						共<i>${fn:length(memberCommentss)}</i>条
					</div>
				</div>
			</div> 
		</div>


		<script type="text/javascript"
			src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>
		<%@ include file="/jsp/admin/common/messages.jsp"%>
		<script type="text/javascript">
	var selected = 'selected';
	$("#ask_ids").click(function() {
		if (this.checked) {
			$('input[type=checkbox]').attr("checked", true);

			$('#ask_list_table > tr').addClass(selected);
		} else {
			$('input[type=checkbox]').attr("checked", false);
			$('#ask_list_table > tr').removeClass(selected);
		}
	});

	function changeColor(obj) {
		if ($(obj).attr("checked")) {
			$(obj).parent().parent().addClass(selected);
		} else {
			$(obj).parent().parent().removeClass(selected);
		}
	}

	function levelBatchDelete() {
		var selected = false;
		$('#ask_list_table input[type=checkbox]').each(function(i, dom) {
			if ($(dom).attr("checked")) {
				selected = true;
			}
		});
		if (!selected) {
			alert('请选择要删除的咨询');
			return;
		}
		if (!confirm("确定删除吗？ ")) {
			return;
		}
		//$('#levelListForm').submit();
	}
</script>
	</body>
</html>